﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class UserControl_MyFrame : System.Web.UI.UserControl
{
    private string _lblTitle;

    public string lblTitle
    {
        get { return _lblTitle; }
        set { _lblTitle = value;
        Label1.Text = _lblTitle; 
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        
    }
    protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
    {
        string i = GridView1.SelectedRow.Cells[4].Text ;

        Label a = new Label();

        a.Text = i;

        this.Controls.Add(a);
    }
}
